var app = getApp();
var server = require('../../utils/server');
var ajaxUrl = require('../../utils/url.js');
Page({
  data: {
    goods:[           
        ],
    quesList:[ 
    {
      id:0,
      name:"购买咨询",
      hidden:true
    } ,
    {
      id:1,
      name:"优惠说明",
      hidden:true
    } ,
    {
      id:2,
      name:"联系我们",
      hidden:true
    } ,
    {
      id:3,
      name:"免责声明",
      hidden:true
    }       
        ],
    cart: {
      count: 0,
      total: 0,
      list: {}
    },
    showCartDetail: false
  },
  onLoad: function (options) {
    var that = this;
    
  },
  
  onShow: function () {
  },  
  tapQuestype: function(e){
    var id = e.currentTarget.dataset.id;
    var self = this;
    for(var i = 0;i< self.data.quesList.length;i++)
    {
     self.data.quesList[i].hidden = true;
     if (id == i)
        self.data.quesList[i].hidden = false;
    }
    self.setData({
                 quesList:self.data.quesList
               })
  }
 
});

